package com.sun.jdk.mytest;

public class RunnableTest {

    public static void main(String[] args) {

        System.out.println("主线程中代码执行："+Thread.currentThread().getName());
        
        
        Runnable runnable = () -> System.out.println("新线程中代码执行："+Thread.currentThread().getName());
        Thread t0 = new Thread(runnable);
        t0.start();
    }
}
